package com.ruoyi.comprehensive.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 网上信访对象 petition_letter
 *
 * @author Allen
 * @date 2021-08-31
 */
@Data
@ToString
public class PetitionLetter extends BaseEntity {

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 信访人id
     */
    private Long soldierId;

    /**
     * 信件类型
     */
    @Excel(name = "信件类型")
    private Integer typeId;

    /**
     * 信访主题
     */
    @Excel(name = "信访主题")
    private String theme;

    /**
     * 信访内容
     */
    @Excel(name = "信访内容")
    private String content;

    /**
     * 处理状态 1：待处理 2：处理中 3：已完结
     */
    @Excel(name = "处理状态", readConverterExp = "1=待处理,2=处理中,3=已完结")
    private Integer status;

    /**
     * 信访时间
     */
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "信访时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date petitionTime;

    @TableField(exist = false)
    private Object processList;
}
